package com.csdig.cms.dao;

import java.util.List;

import org.springframework.cache.annotation.Cacheable;

import com.csdig.cms.model.CmsSetting;
import com.csdig.db.model.Pagination;


public interface CmsSettingDAO {


    public void add(CmsSetting vo) throws Exception;

    public void update(CmsSetting vo) throws Exception;

    public void delete(String name) throws Exception;

    public CmsSetting findById(java.lang.String id) throws Exception;

    public List<CmsSetting> listAll() throws Exception;

    public Pagination<CmsSetting> findByCondition(CmsSetting vo, int pageNo, int pageSize)throws Exception;
    
    public List<CmsSetting> findByCondition(CmsSetting bean)throws Exception;

    @Cacheable(value="com.csdig.cms.dao.CmsSettingDAO.findAllFromCache")
	public List<CmsSetting> findAllFromCache()throws Exception;
    
}
